package com.yfp.operation.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yfp.operation.domain.WorkOrderDO;

import java.util.List;

/**
 *
 * @description 针对表【work_order(工单表)】的数据库操作Service
 * @createDate 2024-04-22 17:21:49
 */
public interface WorkOrderService extends IService<WorkOrderDO> {

    /**
     * 根据工单id查询工单信息
     *
     * @param orderIds 订单id列表
     * @return
     */
    List<WorkOrderDO> listByOrderIds(List<String> orderIds);

    /**
     * 获取今日进行中的工单
     *
     * @return
     */
    List<WorkOrderDO> listTodayInProcess();

    /**
     * 获取今日待处理的工单
     *
     * @return
     */
    List<WorkOrderDO> listTodayPending();

    /**
     * 已完成的工单
     *
     * @param workOrderDO
     * @return
     */
    WorkOrderDO getCompleted(WorkOrderDO workOrderDO);
}
